import { CdnNode } from "./CdnNode";

// ARecord 类型
export interface ARecord {
    id: number;
    domain: string;
    ttl: number;
    status: boolean;
    nodes: CdnNode[];   // ✅ 后端返回的是完整节点对象
    created_at: string;
    updated_at: string;
  }
  
  // 创建/更新接口参数类型
  export interface ARecordCreate {
    domain: string;
    ttl?: number;
    status?: boolean;
    node_ids: number[];
  }
  
  export interface ARecordUpdate {
    ttl?: number;
    status?: boolean;
    node_ids?: number[];
  }
  